import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Flutter Icons Grid")),
        body: IconsGrid(),
      ),
    );
  }
}

class IconsGrid extends StatelessWidget {
  final List<IconData> icons = [
    Icons.ten_k,
    Icons.ten_k_sharp,
    Icons.ten_k_rounded,
    Icons.ten_k_outlined,
    Icons.ten_mp,
    Icons.ten_mp_sharp,
    Icons.ten_mp_rounded,
    Icons.ten_mp_outlined,
    Icons.eleven_mp,
    Icons.eleven_mp_sharp,
    Icons.eleven_mp_rounded,
    Icons.eleven_mp_outlined,
    Icons.onetwothree,
    Icons.onetwothree_sharp,
    Icons.onetwothree_rounded,
    Icons.onetwothree_outlined,
    Icons.twelve_mp,
    Icons.twelve_mp_sharp,

    Icons.access_alarm,
    Icons.accessibility,
    Icons.account_balance,
    Icons.account_circle,
    Icons.add_a_photo,
    Icons.add_alarm,
    Icons.airline_seat_flat,
    Icons.android,
    Icons.approval,
    Icons.arrow_back,
    Icons.arrow_forward,
    Icons.attach_file,
    Icons.beach_access,
    Icons.brightness_1,
    Icons.camera,
    Icons.camera_alt,
    Icons.chat,
    Icons.check_circle,
    Icons.check_box,
    Icons.circle,
    Icons.cloud,
    Icons.cloud_done,
    Icons.cloud_download,
    Icons.cloud_upload,
    Icons.dashboard,
    Icons.delete,
    Icons.edit,
    Icons.email,
    Icons.favorite,
    Icons.home,
    Icons.image,
    Icons.info,
    Icons.keyboard,
    Icons.language,
    Icons.lightbulb,
    Icons.lock,
    Icons.mic,
    Icons.music_note,
    Icons.notifications,
    Icons.pan_tool,
    Icons.photo,
    Icons.place,
    Icons.play_arrow,
    Icons.print,
    Icons.radio,
    Icons.refresh,
    Icons.search,
    Icons.settings,
    Icons.star,
    Icons.store,
    Icons.toggle_on,
    Icons.volume_up,
    Icons.ten_k,
    // Add more icons as needed
  ];

  @override
  Widget build(BuildContext context) {
    return GridView.builder(
      gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 10,
        crossAxisSpacing: 0,
        mainAxisSpacing: 0,
      ),
      itemCount: icons.length,
      itemBuilder: (context, index) {
        return Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Icon(icons[index], size: 40),
            SizedBox(height: 8),
            Text(
              icons[index].toString().split('.').last,
              style: TextStyle(fontSize: 10),
            ),
          ],
        );
      },
    );
  }
}
